<?php

require_once "connection.php";
$q = strtolower($_GET["q"]);
if (!$q) return;

$sql = "select pareigos.pareigosid, pareigos.pareigos from pareigos where pareigos.pareigos LIKE '$q%'";
$rsd = mysql_query($sql);
while($rs = mysql_fetch_array($rsd)) {
	$cname = $rs['pareigos'] . " [" . $rs ['pareigosid'] . "]";
	echo "$cname\n";
};
echo "Kitas";

?>